OK = 1  # 正常
OTHER_ERR = -1  # 暂定错误
SEND_SMS_ERR = -2  # 短信验证码发送失败
SEND_SMS_FREQUENCY = -3  # 短信发送频繁
MOBILE_DUPLICATED = -4  # 手机号已经注册
USERNAME_DUPLICATED = -5  # 用户名已存在
DB_ERR = -6  # 数据库异常
MOBILE_NOT_EXIST = -7  # 手机号未注册
INVALID_ARGS = -8  # 参数异常 非法参数 缺少参数
SMS_CODE_ERR = -9  # 短信验证码错误
SMS_CODE_EXPIRED = -10  # 短信验证码过期
REGISTER_PASSWORD_NOT_EQUAL = -11  # 两次输入密码不同
LOGIN_USER_OR_PASSWORD_ERR = -12  # 登录：用户名或密码错误
NOT_LOGIN = -13  # 用户未登陆
ADDRESS_LIMIT_ERR = -14  # 超过地址数量上限
ADDRESS_IS_EMPTY = -15  # 无用户地址，请添加
ADDRESS_NOT_EXIST = -16  # 地址不存在
PASSWORD_DIFFERENT = -17  # 两次输入密码不同
PASSWORD_ERR = -18  # 密码错误
TOKEN_EXPIRED = -19  # Token过期

# 库存
NOT_ENOUGH_STOCK = -30  # 库存不足
NOT_GOODS = -31  # 商品不存在
